<?php
$ahed_website = get_option('ahed_website');

$ahed_email = get_option('ahed_email');

$ahed_address = get_option('ahed_address');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Sigma</title>

<!-- Bootstrap core CSS -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href="<?php echo get_template_directory_uri(); ?>/inc/reset.css" rel="stylesheet" type="text/css" />
<link href="<?php echo get_template_directory_uri(); ?>/inc/layout.css" rel="stylesheet" type="text/css" />
<link href="<?php echo get_template_directory_uri(); ?>/inc/hashslider.css" rel="stylesheet" type="text/css" />
<link href="<?php echo get_template_directory_uri(); ?>/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="<?php echo get_template_directory_uri(); ?>/css/style.css" rel="stylesheet">
<link href="<?php echo get_template_directory_uri(); ?>/css/thems.css" rel="stylesheet">
<link href="<?php echo get_template_directory_uri(); ?>/css/ui-lightness/jquery-ui-1.10.4.custom.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/jquery.datetimepicker.css" />
<link href="<?php echo get_template_directory_uri(); ?>/css/responsive.css" rel="stylesheet">
<?php wp_head(); ?>
</head>
<body>
<div class="header">
  <div class="container">
    <div class="logo"> <a href="<?php echo get_site_url(); ?>"> <img src="<?php echo get_template_directory_uri(); ?>/images/img_06.png"></a> </div>
    <div class="pull-right">
      <div class="top-right">
        <div class="email"> <a href="<?php echo $ahed_website; ?>"><?php echo $ahed_website; ?></a> <a href="mailto:<?php echo $ahed_email; ?>"><?php echo $ahed_email; ?></a> </div>
        <div class="search">
          <form method="Post" action="<?php echo get_site_url() ?>/search"  >
            <input type="text" value="Search" onfocus="if(this.value=='Search') this.value='';" onblur="if(this.value=='') this.value='Search'; " id="textsearch" name="Name">
            <input type="submit" name="bt_search"  id="bt_search" />
          </form>
        </div>
      </div>
    </div>
    <div class="hea-address">
      <div>
        <?php
                        echo $ahed_address;
                        ?>
      </div>
      <?php
                    if ($_SESSION['userlogin'] <> "") {
                        ?>
      Hello,
      <?php
                        echo $_SESSION['userlogin']['first_name'] . ' ' . $_SESSION['userlogin']['last_name'];
                        ?>
      <a class="button bt_logintop"  style="cursor: pointer" id="logout_user"  >Logout</a>
      <?php
                    } else {
                        /* ?><a class="button bt_logintop"  href="<?php echo get_site_url(); ?>/login">Login</a>
                          <?php
                         * 
                         */
                    }
                    ?>
    </div>
  </div>
  <div class="mainNavigation">
    <div class="container">
      <div class="menu"> <a href="#" class="but-menu"><img src="<?php echo get_template_directory_uri(); ?>/images/3cham.png"></a>
        <?php wp_nav_menu(array('theme_location' => 'primary-menu', 'menu_class' => 'menu')); ?>
      </div>
    </div>
  </div>
</div>
<!--container-->
</div>
<!--header-->

<div class="container">
  <div class="menu-small">
    <?php wp_nav_menu(array('theme_location' => 'second-menu', 'menu_class' => 'second-menu')); ?>
  </div>
</div>
<!-- container--> 

